package com.bdqn.Practice.service;

import com.bdqn.Practice.mapper.StorageRecordMapper;
import com.bdqn.Practice.pojo.StorageRecord;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("storageRecordService")
public class StorageRecordServiceImpl implements StorageRecordService{
    @Resource
    private StorageRecordMapper storageRecordMapper;

    @Override
    public List<StorageRecord> selectPageList(Integer pageNo, Integer pageSize, String queryGoodsName, Integer querySupplierId) {
        return storageRecordMapper.selectPageList((pageNo-1)*pageSize,pageSize,queryGoodsName,querySupplierId);
    }

    @Override
    public int count() {
        return storageRecordMapper.count();
    }
}
